package com.huazi.www.drug.drugz.enity;

/**
 * @description：药品表
 * @author：zt
 * @date：2021/5/8 11:57
 * @versions：v1.0
 */
public class Drug {

    private Integer id;       //编号
    private String drugName;  //药品名称
    private Integer type;     //药品类型
    private Double price;     //单价
    private Integer count;    //数量
    private String remark;    //药品备注


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 空构造
     */
    public Drug() {
    }

    /**
     * 作查询所有药品
     *
     * @param id       药品编号
     * @param drugName 药品名称
     */
    public Drug(Integer id, String drugName) {
        this.id = id;
        this.drugName = drugName;
    }

    /**
     * 检查库存状态
     *
     * @param id       药品编号
     * @param drugName 药品名称
     * @param count    药品数量
     */
    public Drug(Integer id, String drugName, Integer count) {
        this.id = id;
        this.drugName = drugName;
        this.count = count;
    }

    /**
     * 做新增药品
     *
     * @param drugName 药品名
     * @param type     药品类型
     * @param price    单价
     * @param count    数量
     * @param remark   备注
     */
    public Drug(String drugName, Integer type, Double price, Integer count, String remark) {
        this.drugName = drugName;
        this.type = type;
        this.price = price;
        this.count = count;
        this.remark = remark;
    }

    /**
     * 查询
     *
     * @param id       药品编号
     * @param drugName 药品名称
     * @param type     药品类型
     * @param price    药品价格
     * @param count    药品数量
     * @param remark   药品描述
     */
    public Drug(Integer id, String drugName, Integer type, Double price, Integer count, String remark) {
        this.id = id;
        this.drugName = drugName;
        this.type = type;
        this.price = price;
        this.count = count;
        this.remark = remark;
    }

}
